package com.foreverwin.jzymes.production.picking.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.foreverwin.jzymes.production.picking.mapper.PickingBillLogMapper;
import com.foreverwin.jzymes.production.picking.domain.PickingBillLog;
import com.foreverwin.jzymes.production.picking.service.IPickingBillLogService;

/**
 * 领料单据记录 服务层实现
 * 
 * @author levy
 * @date 2019-07-11
 */
@Service
public class PickingBillLogServiceImpl implements IPickingBillLogService
{
	@Autowired
	private PickingBillLogMapper pickingBillLogMapper;

	/**
     * 查询领料单据记录信息
     * 
     * @param handle 领料单据记录ID
     * @return 领料单据记录信息
     */
    @Override
	public PickingBillLog selectPickingBillLogById(String handle)
	{
	    return pickingBillLogMapper.selectPickingBillLogById(handle);
	}
	
	/**
     * 查询领料单据记录列表
     * 
     * @param pickingBillLog 领料单据记录信息
     * @return 领料单据记录集合
     */
	@Override
	public List<PickingBillLog> selectPickingBillLogList(PickingBillLog pickingBillLog)
	{
	    return pickingBillLogMapper.selectPickingBillLogList(pickingBillLog);
	}
	
    /**
     * 新增领料单据记录
     * 
     * @param pickingBillLog 领料单据记录信息
     * @return 结果
     */
	@Override
	public int insertPickingBillLog(PickingBillLog pickingBillLog)
	{
	    return pickingBillLogMapper.insertPickingBillLog(pickingBillLog);
	}
	
	/**
     * 修改领料单据记录
     * 
     * @param pickingBillLog 领料单据记录信息
     * @return 结果
     */
	@Override
	public int updatePickingBillLog(PickingBillLog pickingBillLog)
	{
	    return pickingBillLogMapper.updatePickingBillLog(pickingBillLog);
	}

	/**
     * 删除领料单据记录对象
     * 
     * @param ids 需要删除的数据ID
     * @return 结果
     */
	@Override
	public int deletePickingBillLogByIds(String ids)
	{
		return pickingBillLogMapper.deletePickingBillLogByIds(ids.split(","));
	}
	
}
